package com.zealcomm.ivcscustomer.utils

import android.text.TextUtils
import com.zealcomm.annotations.ChatMessageType
import com.zealcomm.annotations.ChatRoleType
import com.zco.base.entity.SessionMessage
import com.zealcomm.commonui.beans.MessageContent

object ChatMessageUtil {
    @JvmStatic
    fun addText(text: String?, name: String?, @ChatRoleType role: String?): MessageContent? {
        if (!TextUtils.isEmpty(text)) {
            // TODO name
            val messageContent = MessageContent()
            val sessionMessage = SessionMessage(ChatMessageType.TEXT , text)
            messageContent.messageContent = sessionMessage
            messageContent.role = role
            return messageContent
        }
        return null
    }
}